<admintpl file="header" />
<body class="J_scroll_fixed" style="min-width:600px;">
<div class="wrap J_check_wrap">
<if condition="$data['status'] eq 0">
    <form class="J_ajaxForm" action="{:U('admin/Friend/shenhe')}" method="post">
        <div class="table_list">
            <table width="100%" class="table table-hover">
                <tr>
                    <th>用户名称:</th>
                    <td>{$user.user_login}</td>
                    <th>用户类型:</th>
                    <td><if condition="$user['user_type'] eq 2">流量主<elseif condition="$user['user_type'] eq 3" />广告主<else/>非法用户</if></td>
                </tr>
                <tr>
                    <th>微信号名称:</th>
                    <td>{$data.nickname}</td>
                    <th>微信号 :</th>
                    <td>{$data.hao}</td>
                </tr>
                <tr>
                    <th>好友数:</th>
                    <td>{$data.friendnum}</td>
                    <th>价格（积分）</th>
                    <td>{$data.price}</td>
                </tr>
               
              
                <tr>
                    <th>状态:</th>
                    <td><select style="width:100px;" name="status" >
                        <option value="2" <eq name="status" value="2"> selected</eq> >审核通过</option>
                        <option value="1" <eq name="status" value="1"> selected</eq> >审核失败</option>
                    </select>
                    </td>
                     <th>圈子分类</th>
                    <td>
                    	<select style="width:100px;" name="commonclass">
                    	<volist name="comm" id="vo">
                    		<option value="{$key}">{$vo}</option>
                    	</volist>
                    	</select>
                    </td>
                </tr>
                <tr>
                    <th>审核备注:</th>
                    <td>
                    <textarea rows="4" style="width:100px;"  name="remarks">{$remarks}</textarea>
                    </td>
                    <th></th>
                    <td></td>
                </tr>
                <input type="hidden" value="{$data.wid}" name="wid"/>

            </table>

        </div>
        <div class="form-actions">
            <button class="btn btn-primary J_ajax_submit_btn"  type="submit" >提交</button>
        </div>
    </form>
<else/>
        <div class="table_list">
            <table width="100%" class="table table-hover">
                <tr>
                    <th>用户名称:</th>
                    <td>{$user.user_login}</td>
                    <th>用户类型:</th>
                    <td><if condition="$user['user_type'] eq 2">流量主<elseif condition="$user['user_type'] eq 3" />广告主<else/>非法用户</if></td>
                </tr>
                 <tr>
                    <th>微信号名称:</th>
                    <td>{$data.nickname}</td>
                    <th>微信号 :</th>
                    <td>{$data.hao}</td>
                </tr>
                <tr>
                    <th>好友数:</th>
                    <td>{$data.friendnum}</td>
                    <th>价格（积分）</th>
                    <td>{$data.price}</td>
                </tr>
               
              
                <tr>
                    <th>状态:</th>
                    <td><select style="width:100px;" name="status" >
                        <option value="2" <eq name="status" value="2"> selected</eq> >审核通过</option>
                        <option value="1" <eq name="status" value="1"> selected</eq> >审核失败</option>
                    </select>
                    </td>
                    <th>圈子分类</th>
                    <td>
                    	<select style="width:100px;" name="commonclass">
                    		<option value="0">未分类</option>
                    	<volist name="comm" id="vo">
                    		<option value="{$key}" <if condition="$key eq $data['commonclass']"> selected  </if>  >{$vo}</option>
                    	</volist>
                    	</select>
                    </td>
                </tr>
                <tr>
                    <th>审核备注:</th>
                    <td>
                    <textarea rows="4" style="width:100px;"  name="remarks">{$data.remarks}</textarea>
                    </td>
                    <th></th>
                    <td></td>
                </tr>
                
                <tr>
                    <th>审核时间:</th>
                    <td>{$data.auttime|date='Y-m-d h:i:s',###}</td>
                    <th></th>
                    <td></td>
                </tr>

            </table>

        </div>
</if>
</div>
<script>
    if ($('a.J_ajax_del').length) {
        Wind.use('artDialog', function () {
            $('.J_ajax_del').on('click', function (e) {
                e.preventDefault();
                var $_this = this,
                        $this = $($_this),
                        href = $this.prop('href'),
                        msg = $this.data('msg');
                art.dialog({
                    title: false,
                    icon: 'question',
                    content: '您确定要删除这个字段吗，删除后原来的所以资料内容都将不复存在？',
                    follow: $_this,
                    close: function () {
                        $_this.focus();; //关闭时让触发弹窗的元素获取焦点
                        return true;
                    },
                    ok: function () {

                        $.getJSON(href).done(function (data) {
                            if (data.state === 'success') {
                                if (data.referer) {
                                    location.href = data.referer;
                                } else {
                                    reloadPage(window);
                                }
                            } else if (data.state === 'fail') {
                                //art.dialog.alert(data.info);
                                alert(data.info); //暂时处理方案
                            }
                        });
                    },
                    cancelVal: '关闭',
                    cancel: true
                });
            });

        });
    }

</script>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>